package com.nowcoder.community.service;/**
 * 功能描述
 *
 * @author 21775
 * @date 2022/09/14  10:35
 */

import com.nowcoder.community.dao.DiscussPostMapper;
import com.nowcoder.community.entity.DiscussPost;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *@ClassName DiscussPostService
 *@Description TODO 评论
 *@Author 21775
 *@Date 2022/9/14 10:35
 *@Version 1.0
 */

public interface DiscussPostService {

    public List<DiscussPost> selectDiscussPost(Integer userId, Integer offset, Integer limit,int orderMode);

    public int selectDiscussPostRows(Integer userId);

    int addDiscussPost(DiscussPost discussPost);

    DiscussPost findDiscussPostById(int id);

    int updateCommentCount(int id,int commentCount);

    int updateType(int id,int type);

    int updateStatus(int id,int status);

    int updateScore(int id,double score);
}
